<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.trade.tb_unionmodelinfo.*" %>
<%@page import="java.util.*" %>

<%
	request.setCharacterEncoding("UTF-8");
	Tb_unionmodelinfoInfo modelbiz = new Tb_unionmodelinfoInfo();
	String cust_id = "";
	if(request.getParameter("cust_id")!=null && !request.getParameter("cust_id").equals("")){
		cust_id = request.getParameter("cust_id");		
	} 
	

	
	 
	List list = modelbiz.getListByCust(cust_id);
	 
   
  %>
<html>
  <head>    
  <title>大品牌联合商务返利管理</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script language="javascript" type="text/javascript" src="/program/plugins/calendar/WdatePicker.js"></script>
</head>

<body>
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td width="80%">
				<h1>大品牌联合商务返利管理，以下是会员消费年度总额报表</h1>
			</td>
			<td>
			    
			</td>
		</tr>
	</table>
	
	<% 
		int listsize = 0;
		if(list!=null && list.size()>0){
			listsize = list.size();
	%>
	
	 
	
	<table width="100%" cellpadding="1" cellspacing="1" class="listtab" border="0">
		<tr>
			
			
		  	<th>会员名称</th>
		  	
		  	<th>本年度消费额</th>
		  	
		  	 
			 
		</tr>
		
		
		<% 
		  		for(int i=0;i<list.size();i++){
		  			Hashtable map = (Hashtable)list.get(i);
		  			String price="",cust_name="";
		  			if(map.get("cust_name")!=null) cust_name = map.get("cust_name").toString();
						if(map.get("price")!=null) price = map.get("price").toString();
						 
	
					
		  %>
		
		<tr>
			 
		  <td><%=cust_name%></td>
		  	
			<td><%=price%>元</td>
			 
			
		</tr>
		
		  <%
		  		}
		  %>
		
	</table>
	
	
	<%
		 }
	%>
	

</body>

</html>
